package com.xnf.ssmweb.dao;

import com.xnf.ssmweb.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by chendx on 2021/4/8.
 */
public interface SysLogMapper {

    @Insert("insert into sysLog (visitTime,username,ip,url,executionTime,method) values " +
            "(#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    void save(SysLog sysLog);

    @Select("select * from sysLog")
    List<SysLog> findAll();
}
